
def str_reverse(s):
    return s[::-1]

def substr(s,x,y):
    return s[x:y:1]#字符串的切片操作


if __name__=="__main__":
    result=str_reverse("hjdsdasfadsf")
    result1=substr("fcsdafvsdf",1,9)
    print(result)
    print(result1)